.hb-popup {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  perspective: 3000rpx;
  display: flex;
  justify-content: center;
  align-items: center;
  .hb {
    position: absolute;
    width: 630rpx;
    height: 840rpx;
    background-size: 100% 100%;
    background-image: url('https://ustatic.joymew.com/joymewAssistant/hb/dbReal.png');
    opacity: 0;
    &.show {
      opacity: 1;
    }
    &.aniShow {
      animation:  hbShowAni var(--show-ani-time) linear 1;
    }
    .dban {
      background-size: 100% 100%;
      background-image: url('https://ustatic.joymew.com/joymewAssistant/hb/dban.png');
      width: 585rpx;
      height: 554rpx;
      margin: 0 auto;
      margin-top: 20rpx;
    }

    .downLip {
      background-size: 100% 100%;
      background-image: url('https://ustatic.joymew.com/joymewAssistant/hb/downLip.png');
      width: 630rpx;
      height: 466rpx;
      position: absolute;
      top: 330rpx;
    }

    .upLip {
      background-size: 100% 100%;
      background-image: url('https://ustatic.joymew.com/joymewAssistant/hb/upLip.png');
      width: 630rpx;
      height: 536rpx;
      position: absolute;
      top: -52rpx;
      transition: 0.3s;
      &.openAni {
        transform: translateY(-500rpx);
        opacity: 0;
      }
      &::after {
        content: '嗨喵主持人专享';
        font-size: 70rpx;
        position: absolute;
        color: #fff5e8;
        left: 50%;
        font-weight: 500;
        transform: translateX(-50%);
        bottom: 230rpx;
        white-space: nowrap;
      }
    }

    .open-btn {
      background-size: 100% 100%;
      background-image: url('https://ustatic.joymew.com/joymewAssistant/hb/openBtn.png');
      width: 199rpx;
      height: 199rpx;
      position: absolute;
      left: 201rpx;
      bottom: 236rpx;
      transition: 0.3s;
      &.openAni {
        transform: translateZ(3000rpx);
        opacity: 0;
      }
    }
    .get-btn {
      width: 470rpx;
      height: 88rpx;
      background-size: 100% 100%;
      background-image: url('https://ustatic.joymew.com/joymewAssistant/hb/getIt.png');
      position: absolute;
      top: 510rpx;
      left: 50%;
      transform: translateX(-50%);
      font-size: 32rpx;
      color: #fc5539;
      text-align: center;
      line-height: 88rpx;
    }
    .theme {
      position: absolute;
      top: 10rpx;
      font-size: 25rpx;
      color:#fff;
      left: 50%;
      transform: translateX(-50%);
    }
    .money {
      position: absolute;
      top: 152rpx;
      color: #fc5539;
      font-size: 120rpx;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
      .unit {
        font-size: 60rpx;
      }
    }
    .rule {
      width: 550rpx;
      font-size: 28rpx;
      color: #fff;
      position: absolute;
      top: 620rpx;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
    }
    .sloganIcon {
      width: 364rpx;
      height: 34rpx;
      position: absolute;
      bottom: 20rpx;
      left: 50%;
      transform: translateX(-50%);
    }
    .closeIcon {
      width: 60rpx;
      height: 60rpx;
      position: absolute;
      bottom: -80rpx;
      left: 50%;
      transform: translateX(-50%);
    }
    &.hbOpen {
      opacity: 1;
      .upLip {
        transition: 0s;
        transform: translateY(-500rpx);
        opacity: 0;
      }
      .open-btn {
        transition: 0s;
        transform: translateZ(3000rpx);
      }
    }
  }

  @keyframes hbShowAni {
    0% {
      transform: rotateY(-90deg);
    }
    74% {
      transform: rotateY(20deg);
    }
    85% {
      transform: rotateY(-20deg);
    }
    93% {
      transform: rotateY(10deg);
    }
    98% {
      transform: rotateY(-10deg);
    }
    100% {
      transform: rotateY(0deg);
    }
  }
}